/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm.orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Profesional_SaludCriteria extends AbstractORMCriteria {
	public final IntegerExpression rutProf;
	public final StringExpression nombreProf;
	
	public Profesional_SaludCriteria(Criteria criteria) {
		super(criteria);
		rutProf = new IntegerExpression("rutProf", this);
		nombreProf = new StringExpression("nombreProf", this);
	}
	
	public Profesional_SaludCriteria(PersistentSession session) {
		this(session.createCriteria(Profesional_Salud.class));
	}
	
	public Profesional_SaludCriteria() throws PersistentException {
		this(orm.orm.TallerPersistentManager.instance().getSession());
	}
	
	public EncuestaCriteria createEncuestaCriteria() {
		return new EncuestaCriteria(createCriteria("ORM_Encuesta"));
	}
	
	public Profesional_Salud uniqueProfesional_Salud() {
		return (Profesional_Salud) super.uniqueResult();
	}
	
	public Profesional_Salud[] listProfesional_Salud() {
		java.util.List list = super.list();
		return (Profesional_Salud[]) list.toArray(new Profesional_Salud[list.size()]);
	}
}

